import '@babel/polyfill'
import Vue from 'vue'
import App from './App.vue'
import router from '@/router'
import store from './store/index'
import directive from './directive'
import filter from './filter'
import mixins from './mixins'
import api from './api'
// iconfont
import '@/assets/iconfont/iconfont'
// svg组件
import SvgIcon from 'components/svg-icon'
import SectionWrapper from 'components/section-wrapper'
import VueBus from 'vue-bus'
// moment插件
import moment from 'vue-moment'
import './plugins/element.js'
// css
import './styles/lib/animate.scss'
import './styles/lib/transition.scss'
import './styles/font-size.scss'
import './styles/font-color.scss'
import './styles/common.scss'
import './styles/section-wrapper.scss'
import './styles/table.scss'
import './styles/button.scss'
import './styles/form.scss'
import './styles/view.scss'
import './styles/margin.scss'
import './styles/padding.scss'

// 认证
import './auth'
Vue.config.productionTip = false

directive.init()
filter.init()
mixins.init()

Vue.component(SvgIcon.name, SvgIcon)
Vue.component(SectionWrapper.name, SectionWrapper)
Vue.use(moment)
Vue.use(VueBus)

// 全局引入api
Vue.prototype.api = api

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
